package tcts0421;
public class Teacher extends Person{
    String tid;

    public Teacher(String id, String name, String tid) {
        super(id, name);
        this.tid = tid;
    }

    public void tech() {
        System.out.println("I am Student,I am taching");
    }

    public void eat() {
        System.out.println("I am Teacher");
        System.out.println("id:" + id);
        System.out.println("name:" + name);
        System.out.println("tid:" + tid);
        System.out.println("eating ..........");
    }

    public String toString() {
        return "Teacher " + "ID:" + this.id + " Name:" + this.name + " Tid:" + this.tid;
    }
}